export const IsDrawerOpen = (prevState = {
  openDrawer: false,
  row: {},
  drawerType: ""
}, action) => {
  let { type, openDrawer, row, drawerType } = action
  switch (type) {
    case "change_drawerOpen":
      let newState = { ...action }
      newState.openDrawer = openDrawer
      newState.row = row
      newState.drawerType = drawerType
      return newState

    default: return prevState
  }
}